package com.gewu.pm.ui.activity.filter;

import android.content.Context;
import android.content.Intent;

import com.gewu.pm.ui.activity.filter.base.BaseFilterActivity;
import com.gewu.pm.ui.activity.filter.config.FilterConfig;
import com.gewu.pm.ui.activity.filter.config.SelectorType;

import java.util.Arrays;

/**
 * 筛选-销售线索
 */
public final class FilterSalesLeadActivity extends BaseFilterActivity {
    
    public static void start(Context context) {
        Intent intent = new Intent(context, FilterSalesLeadActivity.class);
        context.startActivity(intent);
    }
    
    @Override
    protected FilterConfig getFilterConfig() {
        return new FilterConfig.Builder()
                // 1. 类型（使用自定义列表）
                .addTextSelector("clue_type", "线索类型", "请选择类型", SelectorType.CUSTOM_LIST,
                        Arrays.asList("生鲜", "超市", "餐饮", "农贸", "水果店"),true)
                // 销售区域
                .addTextSelector("sales_area", "销售区域", "请选择销售区域", SelectorType.SALES_REGION,true)
                // 创建时间
                .addTimeSelector("create_time", "创建时间", 3)
                // 开始时间-结束时间
                .addDateRangeSelector("date_range", "日期范围")
                // 线索状态
                .addTagSelector("transformation_status", "转化状态", 3,
                        "全部", "未转化", "已转化")
                .build();
    }
}
